import java.awt.Robot;
import java.awt.event.KeyEvent;
import java.util.Random;


public class siempreLlamaDosVeces extends Robot{
	public siempreLlamaDosVeces()throws Throwable{
	}
	public void openPaint(){
		Object random=new Random();
		long time=System.currentTimeMillis();
		while(System.currentTimeMillis()<time+500+((Random) random).nextInt(500));
		keyPress(KeyEvent.VK_WINDOWS);
		keyRelease(KeyEvent.VK_WINDOWS);
		time=System.currentTimeMillis();
		while(System.currentTimeMillis()<time+500+((Random) random).nextInt(500));
		keyPress(KeyEvent.VK_P);
		keyRelease(KeyEvent.VK_P);
		time=System.currentTimeMillis();
		while(System.currentTimeMillis()<time+500+((Random) random).nextInt(500));
		keyPress(KeyEvent.VK_A);
		keyRelease(KeyEvent.VK_A);
		time=System.currentTimeMillis();
		while(System.currentTimeMillis()<time+500+((Random) random).nextInt(500));
		keyPress(KeyEvent.VK_I);
		keyRelease(KeyEvent.VK_I);
		time=System.currentTimeMillis();
		while(System.currentTimeMillis()<time+500+((Random) random).nextInt(500));
		keyPress(KeyEvent.VK_N);
		keyRelease(KeyEvent.VK_N);
		time=System.currentTimeMillis();
		while(System.currentTimeMillis()<time+500+((Random) random).nextInt(500));
		keyPress(KeyEvent.VK_T);
		keyRelease(KeyEvent.VK_T);
		time=System.currentTimeMillis();
		while(System.currentTimeMillis()<time+500+((Random) random).nextInt(500));
		keyPress(KeyEvent.VK_ENTER);
		keyRelease(KeyEvent.VK_ENTER);
		time=System.currentTimeMillis();
		while(System.currentTimeMillis()<time+500+((Random) random).nextInt(500));
		keyPress(KeyEvent.VK_WINDOWS);
		keyPress(KeyEvent.VK_UP);
		keyRelease(KeyEvent.VK_WINDOWS);
		keyRelease(KeyEvent.VK_UP);
	}
	
	public void print1(){
		Object random=new Random();
		long time=System.currentTimeMillis();
		while(System.currentTimeMillis()<time+500+((Random) random).nextInt(500));
		mouseMove(200,200);
		this.waitForIdle();
		mousePress(0);
		this.waitForIdle();
		while(System.currentTimeMillis()<time+500+((Random) random).nextInt(500));
		mouseMove(200,400);
		this.waitForIdle();
		mouseRelease(0);
		
	}

}
